package com.jiangyg.mall.search.constant;

/**
 * 类描述：es常量
 *
 * @author jiangyg
 * @date 2021-12-05
 */
public class SkuConstant {

    /**
     * 商品索引
     */
    public static final String SKUS_INDEX = "skus";

    /**
     * 商品搜索建议索引
     */
    public static final String SKUS_SUGGEST_INDEX = "skus_suggest";

    /*************************************** 以下为常用的常量 *********************************************/

    public static final String ID = "id";

    public static final String NAME = "name";

    public static final String LOGO = "logo";

    public static final String TITLE = "title";

    public static final String SUBTITLE = "subtitle";

    public static final String VALUE = "value";

    public static final String VALUES = "values";

    public static final String BASE_ATTRS = "baseAttrs";

    public static final String BASE_ATTRS_ID = "baseAttrs.id";

    public static final String BASE_ATTRS_NAME = "baseAttrs.name";

    public static final String BASE_ATTRS_VALUE = "baseAttrs.value";

    public static final String BASE_ATTRS_SEARCHABLE = "baseAttrs.searchable";

    public static final String SALE_ATTRS = "saleAttrs";

    public static final String PRICE = "price";

    public static final String IN_STOCK = "inStock";

    public static final String BRAND = "brand";

    public static final String BRAND_ID = "brand.id";

    public static final String BRAND_NAME = "brand.name";

    public static final String BRAND_LOGO = "brand.logo";

    public static final String CATEGORY = "category";

    public static final String CATEGORY_ID = "category.id";

    public static final String CATEGORY_NAME = "category.name";

    public static final String NAME_AGG = "name_agg";

    public static final String VALUE_AGG = "value_agg";

    public static final String LOGO_AGG = "logo_agg";

    public static final String ATTR_AGG = "attr_agg";

    public static final String BRAND_AGG = "brand_agg";

    public static final String CATEGORY_AGG = "category_agg";

    public static final String ATTR_AGG_NESTED = "attr_agg_nested";

    public static final String BRAND_AGG_NESTED = "brand_agg_nested";

    public static final String CATEGORY_AGG_NESTED = "category_agg_nested";

    public static final String SEARCHABLE_ATTR_FILTER = "searchable-attr-filter";

    public static final String INPUT = "input";

    public static final String CHINESE = "chinese";

    public static final String SPELLING = "spelling";

    public static final String SIMPLIFIED_SPELLING = "simplified_spelling";

    public static final String CHINESE_SUGGESTION_NAME = "chinese_suggestion";

    public static final String SPELLING_SUGGESTION_NAME = "spelling_suggestion";

    public static final String SIMPLIFIED_SPELLING_SUGGESTION_NAME = "simplified_spelling_suggestion";

    public static final String HIGHLIGHT_PRE_TAG = "<span style='color:red'>";

    public static final String HIGHLIGHT_POST_TAG = "</span>";

    public static final String SPU = "spu";

    public static final String SPU_ID = "spu.id";

    public static final String INTRODUCE = "introduce";

    public static final String SALE_ATTRS_ID_AGGS = "sale_attrs_id_aggs";

    public static final String SALE_ATTRS_ID = "saleAttrs.id";

    public static final String SALE_ATTRS_NAME_AGGS = "sale_attrs_name_aggs";

    public static final String SALE_ATTRS_NAME = "saleAttrs.name";

    public static final String SALE_ATTRS_VALUE_AGGS = "sale_attrs_value_aggs";

    public static final String SALE_ATTRS_VALUE = "saleAttrs.value";

    public static final String SALE_ATTRS_SKUID_AGGS = "sale_attrs_skuid_aggs";

    public static final String SALE_ATTRS_SKUID = "saleAttrs.skuId";

    public static final String SALE_ATTRS_NESTED_AGGS = "sale_attrs_nested_aggs";

    public static final String URL = "url";

    public static final String DEFAULT = "default";

    public static final String IMAGES = "images";

    public static final String BASE_ATTR_GROUPS = "baseAttrGroups";

    public static final String ICON = "icon";

    public static final String[] SELECT_EXCLUDE_FIELDS = new String[]{SPU, CATEGORY, BRAND, BASE_ATTRS, IN_STOCK, SALE_ATTRS, BASE_ATTR_GROUPS};

}
